<?php
/*
 +----------------------------------------------------------------------
 + Title        : Jwt 控制器
 + Author       : Randy_chen
 + Version      : V1.0.0.1
 + Initial-Time : 2020/5/9 14:49
 + Last-time    : 2020/5/9 14:49+ 86187
 + Desc         : Jwt
 +----------------------------------------------------------------------
*/


namespace app\facade;


use app\api\lib\Token;
use think\Facade;

/**
 * Class Jwt
 *
 * @package app\facade
 * @method  \app\api\lib\Token setToken(array $user = [])  创建token
 * @method \app\api\lib\Token check() static Token验证, 返回数据
 * @method \app\api\lib\Token refresh() static Token刷新
 * @method \app\api\lib\Token getPayload() static 获取Payload
 * @method \app\api\lib\Token invalidate($token) static 添加Token至黑名单
 * @method \app\api\lib\Token validate($token) static 验证Token是否在黑名单
 */
class Jwt extends Facade {
	protected static function getFacadeClass() {
		return 'app\api\lib\Token';
	}
}